/**
 * 
 */
package sopia.sg;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

/**
 * @author USER
 *
 */
public class Receiver extends BroadcastReceiver {

	/* (non-Javadoc)
	 * @see android.content.BroadcastReceiver#onReceive(android.content.Context, android.content.Intent)
	 */
	@Override
	public void onReceive(Context context, Intent intent) {
		long value = intent.getLongExtra("new value", -10) + 10;
		Toast toast = Toast.makeText(context, "Broadcast Receiver catch an Intent" 
				+ "	" 
				+ "The value is stored in the Intent is "		
				+ String.valueOf(value), Toast.LENGTH_LONG);
		toast.show();
		}
}
